FROM fabletang/jre8-alpine

RUN echo "Asia/Shanghai" > /etc/timezone
ADD target/shiyi-blog.jar /app/shiyi-blog.jar
WORKDIR /app
RUN sh -c 'touch shiyi-blog.jar'
ENV SERVER_PORT=8800
EXPOSE ${SERVER_PORT}
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app/shiyi-blog.jar"]



